package com.ljkj.blockpay.ui.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.ljkj.blockpay.R;
import com.ljkj.blockpay.basedata.BaseFragment;
import com.ljkj.blockpay.databinding.FragmentDealBinding;
import com.ljkj.blockpay.presenter.DealPresenter;
import com.ljkj.blockpay.ui.activity.TradingParticularsActivity;
import com.ljkj.blockpay.util.KeyboardUtil;
import com.ljkj.blockpay.util.ToastUtils;
import com.ljkj.blockpay.widget.ClickListener;

/**
 * 历史交易fragment
 */
public class DealFragment extends BaseFragment<FragmentDealBinding, DealPresenter> implements ClickListener {


    public DealFragment() {
    }

    public static DealFragment newInstance() {
        DealFragment fragment = new DealFragment();
        return fragment;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    }

    @Override
    protected int initContentView() {
        return R.layout.fragment_deal;
    }

    @Override
    protected DealPresenter createPresenter() {


        return null;
    }

    @Override
    protected void initView() {
        super.initView();
        KeyboardUtil.hideKeyboard(getActivity());
        binding.tvHistorytitle.hideLeftImgBtn(true);
        binding.tvHistorytitle.setTitleContent(R.string.dealhistory);
        binding.tvHistorytitle.setTitleColor(R.color.black);
//        binding.tvHistorytitle.setRightImage(R.mipmap.record_screen);
//        binding.tvHistorytitle.setRightBtnListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                Intent intent = new Intent(getActivity(), TradingParticularsActivity.class);
//                startActivity(intent);
//            }
//        });
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.tv_historytitle:

                break;


        }
//        binding.tvHistorytitle.setRightBtnListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                Intent intent = new Intent();
//                startActivity(intent);
//            }
//        });
    }
}